Abort Model Execution
You can stop a model run by sending the execution_id
to the Abort Execution endpoint. If the ID is recognized, the response has a status of 204 and the process to stop the model run is triggered.
Method
DELETE -> http://localhost:8000/execution_service/api/v1/executions/{execution_id}
You can also explore the Abort Execution endpoint in Swagger:
http://localhost:8000/ execution_service/docs#/Execution/abort_execution_execution_service_api_v1_executions__execution_id__delete
Headers
Name | Value |
---|---|
Authorization | bearer <access_token> |
Body Parameters
Name | Type | Description | Required |
---|---|---|---|
execution_id | string | ID of the model execution that is in progress. | Yes |
Possible Responses
Status | Status Text | Description |
---|---|---|
204 | Successful response | Process to stop model execution is triggered. |
400 | Bad request | Required parameter was not sent. |
401 | Unauthorized | Invalid credentials were provided. |
403 | Access denied | Server denies access to the resource. |
422 | Validation error | Incorrect parameter was sent. |
503 | RabbitMQ is not available | Request cannot be completed because the message service is unavailable. |